package com.shhic.hhplt.server.model;

/**
 * 普通返回值
 * @author 张文硕
 *
 */
public class CommonRtnValue<PAYLOAD> implements IRtnValueModel{

	public static int RTN_CODE_SUCCESS = 0; 
	
	private int rtnCode = RTN_CODE_SUCCESS;
	private String message;
	private PAYLOAD payload;	//负载
	
	public int getRtnCode() {
		return rtnCode;
	}
	public void setRtnCode(int rtnCode) {
		this.rtnCode = rtnCode;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public PAYLOAD getPayload() {
		return payload;
	}
	public void setPayload(PAYLOAD payload) {
		this.payload = payload;
	}
	
	
	public CommonRtnValue(int rtnCode, String message) {
		this.rtnCode = rtnCode;
		this.message = message;
	}
	
	public CommonRtnValue(){
		
	}
	public CommonRtnValue(PAYLOAD payload){
		this.payload = payload;
	}
}
